package com.eyedsion.his.web.entity.businessdata;

import com.eyedsion.his.web.entity.common.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 彭长云
 * @Description:
 * @date 2018/12/13 19:24
 */
@Entity
@Table(name = "dis_bill_stock")
public class DisBillStock extends BaseEntity{
    @Id
    private String code;//药房下账PK [CODE, VARCHAR2, 32]
    private String pharmroomCode;//药房编码 [PHARMROOM_CODE, VARCHAR2, 32]
    private String registerCode;//挂号序号 [REGISTER_CODE, VARCHAR2, 32]
    private String dispensingType;//发药类型;1门诊2住院 [DISPENSING_TYPE, VARCHAR2, 2]
    private String pscdispCode;//门诊处方号或住院摆药单 [PSCDISP_CODE, VARCHAR2, 32]
    private String pscdispDetailCode;//门诊处方明细ID或住院摆药单明细ID [PSCDISP_DETAIL_CODE, VARCHAR2, 32]
    private String pharmBatchCode;//药房批次库存编号 [PHARM_BATCH_CODE, VARCHAR2, 32]
    private String drugCode;//药品编码 [DRUG_CODE, VARCHAR2, 32]
    private BigDecimal mediCount;//发药数量 [MEDI_COUNT, NUMBER, 14.4]
    private BigDecimal purchasePrice;//进价;药库单位价格 [PURCHASE_PRICE, NUMBER, 14.4]
    private BigDecimal retailPrice;//零价;药库单位价格 [RETAIL_PRICE, NUMBER, 14.4]
    private BigDecimal disRetailPrice;//零价;药房单位价格 [DIS_RETAIL_PRICE, NUMBER, 14.4]
    private String dsUnitCode;//药库单位 [DS_UNIT_CODE, VARCHAR2, 32]
    private String disUnitCode;//药房单位 [DIS_UNIT_CODE, VARCHAR2, 32]
    private BigDecimal packScale;//分装比例 [PACK_SCALE, NUMBER, 14.4]
    private String sysBatchno;//系统批号 [SYS_BATCHNO, VARCHAR2, 32]
    private String prodBatchno;//生产批号 [PROD_BATCHNO, VARCHAR2, 32]
    private Date prodDate;//生产日期 [PROD_DATE, DATE, 7]
    private Date perival;//有效期至 [PERIVAL, DATE, 7]
    private String drugSupplierCode;//供货商 [DRUG_SUPPLIER_CODE, VARCHAR2, 32]
    private String locationCode;//库位编码 [LOCATION_CODE, VARCHAR2, 32]
    private BigDecimal disStockCount;//药房库存 [DIS_STOCK_COUNT, NUMBER, 14.4]
    private Date lowAccDate;//下账时间 [LOW_ACC_DATE, DATE, 7]
    private String billDepartCode;//开单科室
    private String billDoctorCode;//开单医生
    private String patientCode;//病人编码

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPharmroomCode() {
        return pharmroomCode;
    }

    public void setPharmroomCode(String pharmroomCode) {
        this.pharmroomCode = pharmroomCode;
    }

    public String getRegisterCode() {
        return registerCode;
    }

    public void setRegisterCode(String registerCode) {
        this.registerCode = registerCode;
    }

    public String getDispensingType() {
        return dispensingType;
    }

    public void setDispensingType(String dispensingType) {
        this.dispensingType = dispensingType;
    }

    public String getPscdispCode() {
        return pscdispCode;
    }

    public void setPscdispCode(String pscdispCode) {
        this.pscdispCode = pscdispCode;
    }

    public String getPscdispDetailCode() {
        return pscdispDetailCode;
    }

    public void setPscdispDetailCode(String pscdispDetailCode) {
        this.pscdispDetailCode = pscdispDetailCode;
    }

    public String getPharmBatchCode() {
        return pharmBatchCode;
    }

    public void setPharmBatchCode(String pharmBatchCode) {
        this.pharmBatchCode = pharmBatchCode;
    }

    public String getDrugCode() {
        return drugCode;
    }

    public void setDrugCode(String drugCode) {
        this.drugCode = drugCode;
    }

    public BigDecimal getMediCount() {
        return mediCount;
    }

    public void setMediCount(BigDecimal mediCount) {
        this.mediCount = mediCount;
    }

    public BigDecimal getPurchasePrice() {
        return purchasePrice;
    }

    public void setPurchasePrice(BigDecimal purchasePrice) {
        this.purchasePrice = purchasePrice;
    }

    public BigDecimal getRetailPrice() {
        return retailPrice;
    }

    public void setRetailPrice(BigDecimal retailPrice) {
        this.retailPrice = retailPrice;
    }

    public BigDecimal getDisRetailPrice() {
        return disRetailPrice;
    }

    public void setDisRetailPrice(BigDecimal disRetailPrice) {
        this.disRetailPrice = disRetailPrice;
    }

    public String getDsUnitCode() {
        return dsUnitCode;
    }

    public void setDsUnitCode(String dsUnitCode) {
        this.dsUnitCode = dsUnitCode;
    }

    public String getDisUnitCode() {
        return disUnitCode;
    }

    public void setDisUnitCode(String disUnitCode) {
        this.disUnitCode = disUnitCode;
    }

    public BigDecimal getPackScale() {
        return packScale;
    }

    public void setPackScale(BigDecimal packScale) {
        this.packScale = packScale;
    }

    public String getSysBatchno() {
        return sysBatchno;
    }

    public void setSysBatchno(String sysBatchno) {
        this.sysBatchno = sysBatchno;
    }

    public String getProdBatchno() {
        return prodBatchno;
    }

    public void setProdBatchno(String prodBatchno) {
        this.prodBatchno = prodBatchno;
    }

    public Date getProdDate() {
        return prodDate;
    }

    public void setProdDate(Date prodDate) {
        this.prodDate = prodDate;
    }

    public Date getPerival() {
        return perival;
    }

    public void setPerival(Date perival) {
        this.perival = perival;
    }

    public String getDrugSupplierCode() {
        return drugSupplierCode;
    }

    public void setDrugSupplierCode(String drugSupplierCode) {
        this.drugSupplierCode = drugSupplierCode;
    }

    public String getLocationCode() {
        return locationCode;
    }

    public void setLocationCode(String locationCode) {
        this.locationCode = locationCode;
    }

    public BigDecimal getDisStockCount() {
        return disStockCount;
    }

    public void setDisStockCount(BigDecimal disStockCount) {
        this.disStockCount = disStockCount;
    }

    public Date getLowAccDate() {
        return lowAccDate;
    }

    public void setLowAccDate(Date lowAccDate) {
        this.lowAccDate = lowAccDate;
    }

    public String getBillDepartCode() {
        return billDepartCode;
    }

    public void setBillDepartCode(String billDepartCode) {
        this.billDepartCode = billDepartCode;
    }

    public String getBillDoctorCode() {
        return billDoctorCode;
    }

    public void setBillDoctorCode(String billDoctorCode) {
        this.billDoctorCode = billDoctorCode;
    }

    public String getPatientCode() {
        return patientCode;
    }

    public void setPatientCode(String patientCode) {
        this.patientCode = patientCode;
    }
}
